package com.validate.platform.web.model;

/**
 * Created by YangJiyu on 2017/8/1 0001.
 */
public enum ResultStatus {
    SUCCESS(100, "成功"),
    CLIENT_ERROR(101, "客户端错误"),
    CODE_ERROR(101, "验证码错误"),
    SERVER_ERROR(201, "服务端错误");


    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
